home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 July
/
EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso
/
earcd
/
comm
/
ums
/
pint.lha
/
UMS
/
Rexx
/
PGPDecrypt.pint
< prev
next >
Wrap
Text File
|
1997-03-04
|
1KB
|
68 lines
/*
$VER: PGPDecrypt.pint 1.0 (27.8.95)
Author:
Matthias Scheler (tron@lyssa.owl.de)
Updated for PINT (22.2.97):
Magnus Heino (nd95mho@Student.HGS.SE)
Function:
decrypts the PGP message show in PINT's message window.
History:
0.1 initial version
0.2 decided to get rid of this strange AMOK style header and
went back to my good old standard
0.3 uses new "EXEC" command
1.0 released with IntuiNews 1.3
Requires:
PGP 2.6ui (2.3a didn't work in every case) in command path of ARexx
Example for "ums.config":
( PINT.Rexx
...
"MessageWindow F4 PGPDecrypt.PINT\n"
...
)
*/
/* Exit if Message Window is not active. */
OPTIONS RESULTS
STATUS
IF RESULT~="MESSAGE" THEN EXIT 5
/* Ask the user for the PGP phrase. */
'GETSTRING TITLE "PGP Decrypt" LABEL "_Phrase" SECRET'
IF RESULT="RESULT" THEN EXIT 5
Phrase=RESULT
/* We get PINT's message number, ... */
GETMSGNUM
MsgNum=RESULT
/* ... save the message, ... */
'SAVEMSGBODY' MsgNum 'TO T:PINT.pgp'
/* ... call PGP, ... */
'EXEC SetEnv PGPPASS "'||Phrase||'"'
'EXEC pgp +BATCHMODE T:PINT.pgp -o T:PINT.asc'
'EXEC UnSetEnv PGPPASS'
/* ... and show the decrypted message. */
'REPLACEMSGBODY WITH T:PINT.asc'
/* cleanup */
'EXEC Delete T:PINT.(asc|pgp) QUIET'